<?=form_open('bannerMainCat/add')?>
<table class="form" width="100%">
    <!--<tr>
        <td class="label" style="width: 150px;">Mã</td>
        <td><input type="text" name="cd_gallery_cat" id="cd_gallery_cat"class="w350" value="<?=set_value('idBannerCat')?>"></td>
    </tr>-->
	<tr>
        <td class="required label">Tên danh muc</td>
        <td><input type="text" name="lb_name_cat" id="lb_name_cat"class="w350" value="<?=set_value('subject')?>" /></td>
    </tr>
    <tr>
      <td class="required label">Danh mục</td>
      <td><select name="ParentID" id="ParentID">
            <option value="0">Là danh mục gốc</option>
            <? foreach($listbannercat as $cat):?>
            <option value="<?=$cat->idBannerCat?>"><?=$cat->subject?></option>
 			<? endforeach?>
        </select>
   	 </td>
    </tr>
   
    <tr>
        <td class="required label">Hình ảnh</td>
        <td><input type="text" name="images" class="w500" id="hinhanh" value="<?=set_value('images')?>">
            <a href="<?=base_url()?>filemanager/index/hinhanh" id="addimages" class="cboxElement" title="Thêm File"> <img src="<?=base_url()?>templates/images/icon/attach.png" alt=""> </a> 728 x 280 pixel </td>
    </tr>
    <tr>
        <td class="label">Chú thích loại bannerCat</td>
        <td><textarea style="width: 500px;height: 100px;" id="cm_banner_cat" name="cm_banner_cat"><?=set_value('cm_baner_cat')?></textarea></td>
    </tr>
    <tr>
        <td class="label">Kích hoạt</td>
        <td>
			<input type="checkbox" name="status" value="1" checked="checked">
        </td>
    </tr>
    <tr>
        <td colspan="2" align="center"><input type="submit" name="bt_submit" value="" class="themmoi"></td>
    </tr>
</table>
<?=form_close()?>
